package com.jianqiao.delivery.pay.domain.initr2p;

import lombok.Data;

import java.util.List;

/**
 * author: cyx
 * create: 2024/11/22 17:29
 **/
@Data
public class SettlementOptionsEntity {
    private String settlementSystem;

    private String primaryAccountNumber;

    public SettlementOptionsEntity(String settlementSystem, String primaryAccountNumber) {
        this.settlementSystem = settlementSystem;
        this.primaryAccountNumber = primaryAccountNumber;
    }

    public static SettlementOptionsEntityBuild builder() {
        return new SettlementOptionsEntityBuild();
    }

    public static class SettlementOptionsEntityBuild{
        private String settlementSystem;

        private String primaryAccountNumber;

        SettlementOptionsEntityBuild() {

        }

        public SettlementOptionsEntityBuild settlementSystem(String settlementSystem) {
            this.settlementSystem = settlementSystem;
            return this;
        }

        public SettlementOptionsEntityBuild primaryAccountNumber(String primaryAccountNumber) {
            this.primaryAccountNumber = primaryAccountNumber;
            return this;
        }

        public SettlementOptionsEntity build() {
            return new SettlementOptionsEntity(this.settlementSystem ,
                    this.primaryAccountNumber);
        }
    }
}
